package services

import (
	"go/dao"
	"go/models"
)

func Addstudent(family models.Family) error {
	err := dao.Addstudent(family)
	return err
}

func Delstudent(id int) error {
	err := dao.Delstudent(id)
	return err
}

func Updatestudent(family models.Family) error {
	err := dao.Updatestudent(family)
	return err
}

func Getstudent(studentParam map[string]interface{}) ([]models.Family, int64, error) {
	studentData, total, err := dao.Getstudent(studentParam)
	return studentData, total, err
}
